Skip to content

Fix bump_patch.sh script and update references#85

Merged
alexkroman merged 2 commits into
mainfrom
claude/epic-shannon-9cobva
Jun 12, 2026
Merged

Fix bump_patch.sh script and update references#85
alexkroman merged 2 commits into
mainfrom
claude/epic-shannon-9cobva

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Summary

Corrects the bump_patch.sh script to actually perform patch version bumps (X.Y.Z → X.Y.(Z+1)) instead of minor version bumps, and updates all references throughout the codebase.

Changes

  • scripts/bump_patch.sh: Fixed version bump logic to increment the patch component (Z) rather than the minor component (Y)

    • Updated comments to correctly describe patch bumping behavior
    • Fixed the version computation from "${major}.$((minor + 1)).0" to "${major}.${minor}.$((patch + 1))"
    • Corrected usage examples in help text from bump_minor.sh to bump_patch.sh
    • Adjusted help text line range from 2,11p to 2,10p to match the corrected comment block
  • AGENTS.md: Updated documentation reference from scripts/bump_minor.sh to scripts/bump_patch.sh in the release workflow description

  • scripts/check.sh: Updated shellcheck invocation to reference scripts/bump_patch.sh instead of scripts/bump_minor.sh

Implementation Details

The script now correctly extracts and increments the patch version component by:

  1. Extracting the patch value: patch="$(echo "$version" | cut -d. -f3)"
  2. Computing the new version: new_version="${major}.${minor}.$((patch + 1))"

This aligns the script's actual behavior with its intended purpose and filename.

https://claude.ai/code/session_01VzK2siFmrUzLziSivJqDfV

Rename scripts/bump_minor.sh to scripts/bump_patch.sh and change the
version increment from X.(Y+1).0 to X.Y.(Z+1), updating the shellcheck
list in check.sh and the release docs in AGENTS.md. Also trim the --help
sed range so it no longer prints the trailing 'set -eu' line.

https://claude.ai/code/session_01VzK2siFmrUzLziSivJqDfV
@alexkroman
alexkroman enabled auto-merge (squash) June 11, 2026 23:58
@alexkroman
alexkroman merged commit eab96c4 into main Jun 12, 2026
7 of 8 checks passed
@alexkroman
alexkroman deleted the claude/epic-shannon-9cobva branch June 12, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants